﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace ECCSystem.DataAccess
{ 
    class ClsSystemLog:DBObject 
    {
        public ClsSystemLog()
        { }
        public int AddSystemLog(int intOperatorID,string strActions)
        {
            int intRowsAffected = 0;
            SqlParameter[] parameters=new SqlParameter[]{new SqlParameter("@OperatorID",SqlDbType.Int),
                new SqlParameter("@Actions",SqlDbType.VarChar,100)
            };
            parameters[0].Value = intOperatorID;
            parameters[1].Value = strActions;
            return this.RunProcedure("sp_SystemLog_Add", parameters, ref intRowsAffected);
        }
    }
}
